<?php
	if (!isset($_SESSION)) {
		session_start();
	}
	
	include('./db/dbconn.php');
	
	$user = $_COOKIE["user"];
	
	$sql = "select uid,  psw, email, type from user where uid='$user'";
	$check_query = mysqli_query($conn, $sql);
	
	if ($result = mysqli_fetch_array($check_query)) {
		echo $result['uid'] . " + " . $result['psw'] . " + " . $result['email'] . " + " . $result['type'];
		
		$json = array("status" => "success", "");
		$jsondata = json_encode($json);
	} 
?>